package com.dimples.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "com-dimples-system-entity-Role")
@Data
@TableName(value = "t_role")
public class SysRole {
    /**
     * 角色ID
     */
    @TableId(value = "ROLE_ID", type = IdType.AUTO)
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    /**
     * 角色标识
     */
    @TableField(value = "ROLE_CODE")
    @ApiModelProperty(value = "角色标识")
    @NotBlank(message = "不能为空")
    private String roleCode;

    /**
     * 角色名称
     */
    @TableField(value = "ROLE_NAME")
    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "不能为空")
    private String roleName;

    /**
     * 角色描述
     */
    @TableField(value = "REMARK")
    @ApiModelProperty(value = "角色描述")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "MODIFY_TIME")
    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;
}